package com.buding.fx.utils;

import com.buding.fx.service.CenterPageBuildService;
import com.buding.fx.service.impl.TagManagerBuildService;
import com.buding.fx.service.impl.WebScManagerBuildService;

/**
 * @author mingdongwei-jwk
 * @date 2022/09/30 10:06
 * @class com.buding.fx.utils
 * @Description 根据类名称和注解构建页面（主要是搜索区域和分页展示区域）
 */
public class PageRedirectUtils {

    public static CenterPageBuildService getCenterBuilder(String redirectUrl){
        CenterPageBuildService centerPageBuildService =  null;
        switch (redirectUrl){
            case "/web_sc_manager":
                centerPageBuildService = new WebScManagerBuildService();
                break;
            case "/labal_manager":
                centerPageBuildService = new TagManagerBuildService();
                break;
            default:
                centerPageBuildService = null;
        }
        return centerPageBuildService;
    }

}
